if divFactor="" or divFactor=0 or divFactor is not a number then
setRect rect,0,0,64,43
else
-- calculate pict rect.
-- how big is the card window?
-- remember rects are backwards points.
setRect rect,0,0,the round of ((oldPort@.portRect.botRight.integerType[2]-oldPort@.portRect.topLeft.integerType[2])/divFactor),the round of ((oldPort@.portRect.botRight.integerType[1]-oldPort@.portRect.topLeft.integerType[1])/divFactor)
end if
setPort newPort
repeat the number of cds
SendCardMessage ("Doingcard" && the number of this card)